package Controller;

import POJO.AppRecords;
import POJO.Model.ResponseModel;
import Service.AppRecordsSerivce;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;

@Controller("AppRecordsController")
public class AppRecordsController {

    @Resource
    AppRecordsSerivce appRecordsSerivce;

   @Resource
   ResponseModel responseModel;

    @RequestMapping(value = "/app/update")
    public @ResponseBody ResponseModel insertAppRecords(@RequestBody AppRecords appRecords)
    {
        appRecordsSerivce.insertAppRecords(appRecords);
        return responseModel;
    }

}
